﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProductsIn.aspx.cs" Inherits="MemberMgr.Website.Admin.ProductsIn" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:ResourceManager runat="server" Locale="zh-CN" />
    <ext:Store ID="storeProduct" runat="server" OnRefreshData="storeProduct_RefreshData">
        <Reader>
            <ext:JsonReader IDProperty="ID">
                <Fields>
                    <ext:RecordField Name="PRODUCTNAME" />
                    <ext:RecordField Name="PRODUCTTYPE" />
                    <ext:RecordField Name="INSUM" Type="Float" />
                    <ext:RecordField Name="INTIME" Type="Date" />
                    <ext:RecordField Name="PRICE" Type="Float" />
                    <ext:RecordField Name="INMEMBER" />
                </Fields>
            </ext:JsonReader>
        </Reader>
    </ext:Store>
    <ext:Viewport ID="Viewport1" runat="server" Layout="border">
        <Items>
            <ext:FormPanel ID="searchPanel" runat="server" Region="North" Title="查询条件" Padding="5"
                Height="100" Frame="true" Margins="5 5 5 5" Layout="Table" Icon="Magnifier">
                <Items>
                    <ext:TableLayout ID="tblLayout" runat="server" Columns="6" LabelWidth="70" LabelAlign="Right">
                        <Cells>
                            <ext:Cell ColSpan="2">
                                <ext:TextField ID="txtSearchName" runat="server" Text="" FieldLabel="商品名称">
                                </ext:TextField>
                            </ext:Cell>
                            <ext:Cell ColSpan="2">
                                <ext:DateField ID="txtSearchDateBeg" runat="server" Width="170" FieldLabel="开始时间" Vtype="daterange"
                                    EndDateField="txtSearchDateEnd">
                                    <CustomConfig>
                                        <ext:ConfigItem Name="endDateField" Value="#{txtSearchDateEnd}" Mode="Value" />
                                    </CustomConfig>
                                </ext:DateField>
                            </ext:Cell>
                            <ext:Cell ColSpan="2">
                                <ext:DateField ID="txtSearchDateEnd" Vtype="daterange" Width="170" runat="server" FieldLabel="结束时间">
                                    <CustomConfig>
                                        <ext:ConfigItem Name="begDateField" Value="#{txtSearchDateBeg}" Mode="Value" />
                                    </CustomConfig>
                                </ext:DateField>
                            </ext:Cell>
                        </Cells>
                    </ext:TableLayout>
                </Items>
                <Buttons>
                    <ext:Button ID="btnSearch" Type="Button" runat="server" Text=" 查 询 ">
                        <DirectEvents>
                            <Click OnEvent="btnSearch_Click" DisableCaching="true">
                                <EventMask ShowMask="true" Msg="正在查询，请稍后..." />
                            </Click>
                        </DirectEvents>
                    </ext:Button>
                </Buttons>
            </ext:FormPanel>
            <ext:GridPanel ID="gpProducts" runat="server" StoreID="storeProduct" Title="入库信息"
                AutoExpandColumn="Comment" Margins="0 5 5 5" Region="Center" Frame="true">
                <ColumnModel ID="cmGrid" runat="server">
                    <Columns>
                        <ext:RowNumbererColumn />
                        <ext:Column Header="商品名称" Width="190" DataIndex="PRODUCTNAME">
                        </ext:Column>
                        <ext:Column Header="商品类型" Width="190" DataIndex="PRODUCTTYPE">
                        </ext:Column>
                        <ext:NumberColumn Header="价格" Width="190" DataIndex="PRICE">
                        </ext:NumberColumn>
                        <ext:NumberColumn Header="入库数量" Width="190" DataIndex="INSUM">
                        </ext:NumberColumn>
                        <ext:DateColumn Header="入库时间" Width="100" DataIndex="INTIME" >
                        </ext:DateColumn>
                        <ext:Column ColumnID="Comment" Header="入库人员" Width="190" DataIndex="INMEMBER">
                        </ext:Column>
                    </Columns>
                </ColumnModel>
                <SelectionModel>
                    <ext:RowSelectionModel ID="rowSelModeNote" runat="server" />
                </SelectionModel>
                <LoadMask ShowMask="true" />
                <BottomBar>
                    <ext:PagingToolbar ID="pageTool" runat="server" PageSize="10" StoreID="storeProduct" />
                </BottomBar>
            </ext:GridPanel>
        </Items>
    </ext:Viewport>
    </form>
</body>
</html>
